﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddSandCastle.aspx.vb" Inherits="BeachesInGreeceComplete.AddSandCastle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Add SandCastle</h2>
        <table>
            <tr>
                <td>
                    Description
                </td>
                <td>
                    <asp:TextBox ID="tb_CastleName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_CastleName"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Picture
                </td>
                <td>
                    <asp:FileUpload ID="f_Picture" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="f_Picture"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="f_Picture"
                        CssClass="field-validation-error" ErrorMessage="Please Upload a valid Picture format"
                        ValidationExpression="^.*\.(jpg|JPG|JPEG|jpeg|gif|GIF|png|PNG|bmp|BMP)$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            </table>
            <br />
             <asp:Button ID="btn_Galleries" runat="server" Text="Add SandCastle" CssClass="m-btn blue"/>
</asp:Content>
